package org.example.ioc.component;

/**
 * ClassName: HappyComponent
 * Package: org.example.ioc.component
 * Description:
 *
 * @Author 王豪
 * @Create 2024/11/2 8:34
 * @Version 1.0
 */
public class HappyComponent {

    private String happyName;

    public HappyComponent() {
    }

    public String getHappyName() {
        return happyName;
    }

    public void setHappyName(String happyName) {
        this.happyName = happyName;
    }

    public void init() {
        System.out.println("HappyComponent初始化");
    }

    public void destroy() {
        System.out.println("HappyComponent销毁");
    }
}
